package com.msgqu.share.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.msgqu.share.domain.user.TUser;
import com.msgqu.share.service.UserService;
import com.msgqu.share.mapper.TUserMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author: wsj
 * @create: 2020-11-03 12:24
 * @throws:
 */
@Slf4j
@Service(interfaceClass = UserService.class,version = "1.0.0",timeout = 15000)
@Component
public class UserServiceProvider implements UserService {

    @Autowired
    private TUserMapper userMapper;

    @Override
    public String getMessage() {
        return "hello world";
    }

    @Override
    public TUser getUserById(Long nId) {
        TUser tUser = userMapper.selectByPrimaryKey(1L);
        return tUser;
    }
}
